import React, { Component } from 'react';
// 引入路由
import { Route } from 'react-router-dom';

//引入from表单组件
import Register from '../form/register';
import Login from '../form/login';

//引入一即导航组件
//推荐页面
import Recommend from '../component/recommend';
//后端页面
import Backend from '../component/backend';
//前端页面
import Frontend from '../component/frontend';
//安卓页面
import Android from '../component/android';
//IOS页面
import Ios from '../component/ios';
//人工智能页面
import Artificial from '../component/artificial';
//开发工具页面
import Tool from '../component/tool';

//引入自己写的样式
import '../index.scss';
export default class Index extends Component {
  render() {
    return (
      <div>
        <Route path="/register" component={Register} />
        <Route path="/login" component={Login} />
        <Route path="/" exact component={Recommend} />
        <Route path="/backend" component={Backend} />
        <Route path="/frontend" component={Frontend} />
        <Route path="/android" component={Android} />
        <Route path="/ios" component={Ios} />
        <Route path="/tool" component={Tool} />
        <Route path="/artificial" component={Artificial} />
      </div>
    );
  }
}
